package com.zhihuishu.micro.course.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhihuishu.micro.course.dao.AppCourseInfoMapper;
import com.zhihuishu.micro.course.model.AppCourseInfo;
import com.zhihuishu.micro.course.service.AppCourseInfoService;

/** 
 * @author yulijin 
 * @version 创建时间：2016年9月26日 下午5:27:38 
 * 类说明 
 */
@Service("appCourseInfoService")
public class AppCourseInfoServiceImpl implements AppCourseInfoService {
	@Resource
	private AppCourseInfoMapper appCourseInfoMapper ;
	@Override
	public void save(AppCourseInfo appCourseInfo) {
		appCourseInfoMapper.save(appCourseInfo);
	}

	@Override
	public Integer findAppCourseInfoTotalCount(String keywords) {
		
		return appCourseInfoMapper.findAppCourseInfoTotalCount(keywords);
	}

	@Override
	public List<AppCourseInfo> findPageAppCourseInfoDtos(String keywords,
			int pageNo, int pageSize) {

		return appCourseInfoMapper.findPageAppCourseInfos(keywords, pageNo, pageSize);
	}

	@Override
	public void remove(Long courseId) {
		appCourseInfoMapper.remove(courseId);
	}
	
}
